package com.ybkj.o2o.zhuanxian.mapper;

import com.ybkj.o2o.zhuanxian.entity.OrderReview;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderReviewMapper {

  int insert(OrderReview record);

  List<OrderReview> findByOrderIdAndAppKey(@Param("orderId") Long orderId,
      @Param("appKey") String appKey);

  void deleteById(@Param("id") Long id, @Param("appKey") String appKey);

  OrderReview findOne(@Param("id") Long id, @Param("appKey") String appKey);

  Long countByDriver(@Param("driverId") Long driverId, @Param("appKey") String appKey);

  List<OrderReview> findByDriver(@Param("driverId") Long driverId, @Param("limit") Integer limit,
      @Param("rows") Integer rows, @Param("appKey") String appKey);

}
